package cn.t17.appsys.service.impl;

import cn.t17.appsys.dao.AppInfoMapper;
import cn.t17.appsys.entity.AppInfo;
import cn.t17.appsys.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AppInfoServiceImpl class
 *
 * @author Administrator
 * @date 2021/9/16
 */
@Service
public class AppInfoServiceImpl implements AppInfoService {

    @Autowired
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> listBy(AppInfo info) {
        return appInfoMapper.listBy(info);
    }

    @Override
    public Integer countBy(AppInfo info) {
        return appInfoMapper.countBy(info);
    }

    @Override
    public List<AppInfo> listByPage(AppInfo info, Integer pageIndex, Integer pageSize) {
        return appInfoMapper.listByPage(info,(pageIndex-1)*pageSize,pageSize);
    }

    @Override
    public Integer deleteById(Integer id) {
        return appInfoMapper.deleteById(id);
    }

    @Override
    public Integer update(AppInfo info) {
        return appInfoMapper.update(info);
    }

}
